package com.wj.rpsm.admin.mapper;

import com.github.pagehelper.Page;
import com.wj.rpsm.admin.pojo.Building;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author WeiJin
 */
@Repository
public interface BuildingMapper {

    Page<Building> findAllBuilding( @Param("key") String key);


    /**
     * 根据id楼栋id查询楼栋名
     * @param belong_building
     * @return
     */
    @Select("select building_name from building where building_id = #{id}")
    String queryBuId(Integer belong_building);
}
